<script setup>
	import { onShow, onLaunch  } from '@dcloudio/uni-app'
	onShow(async () => {
		await getAfterNum();
	})
	onLaunch(async () => {
		await getCurrentNum();
	})
	const getCurrentNum = () => {
		return new Promise((resolve, reject) => {
			let temp = setTimeout(() => {
				clearTimeout(temp);
				console.log('lanch')
				resolve()
			}, 1000)
		})
	}
	const getAfterNum = () => {
		return new Promise((resolve, reject) => {
			let temp = setTimeout(() => {
				clearTimeout(temp);
				console.log('show')
				resolve()
			}, 800)
		})
	}
</script>

<style>
	/*每个页面公共css */
</style>
